Skip to content

Give a member who knows the Collector's Guide its chance of a second raid box - #3919

Merged
erwan-joly merged 2 commits into
masterfrom
feature/3905-collectors-guide
Dec 1, 2026
Merged

erwan-joly merged 2 commits into
masterfrom
feature/3905-collectors-guide

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Erwan · project thread

Part of #3905. Stacked on #3906 (base claude/project-thread-dmsvm2), because it adds one row to the tome table that PR introduces; retarget to master once #3906 merges.

What changed

Collector's Guide (skill 136, passive kind 39) carries DATA 0 5 5. BCard.dat does cover both chances, contrary to the issue text: type 126 sub-type 4 reads "There is a %s%% chance that you'll get an additional raid box." (BCardEffect.ExtraRaidBoxChance), and sub-type 3 is the extra raid token excluding hardcore tokens (ExtraRaidTokenChance).

Not done

  • The extra raid token (DATA c3): NosCore hands out no raid tokens. The only token items in Item.dat are the hardcore raid tokens, which this chance excludes. The parser leaves c3 unread for now, so nothing ships that does nothing. When raid tokens are added, the same table row takes ExtraRaidTokenChance from c3.

Tests

  • RaidServiceTests.TheCollectorsGuideCanGiveASecondBox: a winner who knows the guide gets two boxes when the roll comes up, and the member without it gets one.
  • RaidServiceTests.TheCollectorsGuideGivesNoSecondBoxOnAMissedRoll.
  • SkillParserTests.ATomeRaisesItsStatByItsSecondDataField covers kind 39.
  • NosCore.GameObject.Tests: 3563 passed. SkillParserTests: 36 passed.

Client check (still to run)

Teach skill 136 to a character ($AddSkill 136) and win the Mother Cuby raid with the chance forced to 100% in the database (skill 136's BCard FirstData). That character should get two Raid Boxes of Mother Cuby (4684), each with its own green "received" line.


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Collector’s Guide can now grant a second Mother Cuby Raid Box, based on its chance.
  • Documentation
    • Updated the raid test plan to cover successful and missed extra-box rolls.
  • Tests
    • Added coverage for receiving a second box and for cases where the chance roll does not succeed.

@erwan-joly erwan-joly self-assigned this Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ecd9a2d and 0fe0adf.

Files selected for processing: 5

  • documentation/manual-test-plan.md
  • src/NosCore.GameObject/Services/RaidService/RaidService.cs
  • src/NosCore.Parser/Parsers/SkillParser.cs
  • test/NosCore.GameObject.Tests/Services/RaidService/RaidServiceTests.cs
  • test/NosCore.Parser.Tests/SkillParserTests.cs

No actionable comments were generated in the recent review.

Walkthrough

The parser maps Collector’s Guide’s DATA c2 value to an extra-raid-box chance. On raid success, RaidService uses matching passive-skill and active-buff B-cards to determine whether to grant a second raid box.

Changes

Collector’s Guide raid box chance

Layer / File(s) Summary
Map Collector’s Guide chance
src/NosCore.Parser/Parsers/SkillParser.cs, test/NosCore.Parser.Tests/SkillParserTests.cs
Course 39 maps DATA c2 to ExtraRaidBoxChance. The parser test data includes tome kind 39.
Apply chance to raid rewards
src/NosCore.GameObject/Services/RaidService/RaidService.cs, test/NosCore.GameObject.Tests/Services/RaidService/RaidServiceTests.cs, documentation/manual-test-plan.md
RaidService sums matching B-card values from active buffs and passive skills. It grants another box when the random roll is below the chance. Tests cover a successful and a missed roll. The manual test plan covers the additional box and receipt line.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant RaidService
  participant PassiveSkillService
  participant IBuffService
  participant IRandomProvider
  RaidService->>PassiveSkillService: Read passive-skill B-cards
  RaidService->>IBuffService: Read active-buff B-cards
  RaidService->>IRandomProvider: Draw value from 0 through 99
  RaidService->>RaidService: Grant another box if roll is below chance
Loading

Possibly related issues

  • NosCoreIO/NosCore issue 3905 — This change implements the DATA c2 extra-box chance, but does not read DATA c3 or add the extra raid-token chance.

Suggested reviewers: claude

Merge Risk: Minimal · previous review ecd9a

Raid winners with Collector's Guide get a chance at a second reward box. Other winners are unaffected. The change is small, tested and easy to revert, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a member who knows Collector's Guide (skill 136) gets a chance at a second raid box. The raw summary confirms the RaidService reward logic, the ExtraRaidBoxChance pars…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a member who knows Collector's Guide (skill 136) gets a chance at a second raid box. The raw summary confirms the RaidService reward logic, the ExtraRaidBoxChance parser mapping, and tests for the second-box roll, all matching this title. The title is specific and does not describe unrelated work. It does not mention the parser or the stacking dependency, which is acceptable because it need not cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f73d2d6 and ecd9a2d.

Files selected for processing: 5

  • documentation/manual-test-plan.md
  • src/NosCore.GameObject/Services/RaidService/RaidService.cs
  • src/NosCore.Parser/Parsers/SkillParser.cs
  • test/NosCore.GameObject.Tests/Services/RaidService/RaidServiceTests.cs
  • test/NosCore.Parser.Tests/SkillParserTests.cs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@erwan-joly
erwan-joly force-pushed the claude/project-thread-dmsvm2 branch from a8da924 to 282606d Compare November 29, 2026 10:24
@erwan-joly
erwan-joly force-pushed the feature/3905-collectors-guide branch from c4cfdf2 to 64a8de7 Compare November 29, 2026 10:25
erwan-joly pushed a commit that referenced this pull request Nov 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5

Copy link
Copy Markdown
Collaborator Author

Review: keep this one for #3905 (#3921 is closed as a duplicate). It is stacked on #3906, so it lands after #3906, retargeted to master. Please add a manual-test-plan check for the second raid box.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn


Generated by Claude Code

@erwan-joly

Copy link
Copy Markdown
Collaborator Author

Client test (cloud client, Mother Cuby raid)

Before After
before: one raid box after: two raid boxes

For a solo run, the raid script was set to ForTeams(1, 15) in the build output only; the repository is unchanged.


Generated by Claude Code

@erwan-joly
erwan-joly force-pushed the claude/project-thread-dmsvm2 branch from c54552b to 3474c97 Compare November 29, 2026 14:10
@erwan-joly
erwan-joly changed the base branch from claude/project-thread-dmsvm2 to master December 1, 2026 14:11
@erwan-joly
erwan-joly force-pushed the feature/3905-collectors-guide branch from 64a8de7 to ecd9a2d Compare December 1, 2026 14:11
…raid box

Fixes #3905 (box part)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkSvJzdfRqygoWXMEUM
@erwan-joly
erwan-joly force-pushed the feature/3905-collectors-guide branch from ecd9a2d to 0fe0adf Compare December 1, 2026 14:17
@erwan-joly
erwan-joly merged commit df9c404 into master Dec 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants